#ifndef __FONTS_H
#define __FONTS_H

#include "uc_libdefs.h"

typedef struct { // Data stored PER GLYPH
	uint bitmapOffset;     // Pointer into tGFXfont->bitmap
	uint  width, height;    // Bitmap dimensions in pixels
	uint  xAdvance;         // Distance to advance cursor (x axis)
	int   xOffset, yOffset; // Dist from cursor pos to UL corner
} tGFXglyph;

typedef struct { // Data stored for FONT AS A WHOLE:
	const u8  *bitmap;      // Glyph bitmaps, concatenated
	const tGFXglyph *glyph;       // Glyph array
	uint   first, last; // ASCII extents
	u8   yAdvance;    // Newline distance (y axis)
} tGFXfont;

#endif
